package model;

import java.sql.Timestamp;

/**
 * News entity. @author MyEclipse Persistence Tools
 */

public class News implements java.io.Serializable {

	// Fields

	private Long id;
	private String newsTitle;
	private String newsReporter;
	private String newsContent;
	private Timestamp submitTime;

	// Constructors

	/** default constructor */
	public News() {
	}

	/** full constructor */
	public News(String newsTitle, String newsReporter, String newsContent,
			Timestamp submitTime) {
		this.newsTitle = newsTitle;
		this.newsReporter = newsReporter;
		this.newsContent = newsContent;
		this.submitTime = submitTime;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNewsTitle() {
		return this.newsTitle;
	}

	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}

	public String getNewsReporter() {
		return this.newsReporter;
	}

	public void setNewsReporter(String newsReporter) {
		this.newsReporter = newsReporter;
	}

	public String getNewsContent() {
		return this.newsContent;
	}

	public void setNewsContent(String newsContent) {
		this.newsContent = newsContent;
	}

	public Timestamp getSubmitTime() {
		return this.submitTime;
	}

	public void setSubmitTime(Timestamp submitTime) {
		this.submitTime = submitTime;
	}

}